Refine shebang tests (bug#64939)
authorKévin Le Gouguec <kevin.legouguec@gmail.com>
Sat, 10 Feb 2024 15:14:08 +0000 (16:14 +0100)
committerEli Zaretskii <eliz@gnu.org>
Sat, 17 Feb 2024 08:30:39 +0000 (10:30 +0200)
commitde6f7f3c86ea0e52e8f9825585c726a7f93fa9cf
tree07ed7c824e6c67026e4290bab70b9190ba855ba3
parent3d87e343276081247102838b827b8a1f5e9e0c54
Refine shebang tests (bug#64939)

* test/lisp/files-tests.el (files-tests--check-shebang): For
shell-script modes, verify that the correct shell is set.
(files-tests-auto-mode-interpreter): Prefer 'sh-base-mode' to
'sh-mode' to stay tree-sitter-agnostic; re-organize test cases to
make future ones easier to add.
test/lisp/files-tests.el